Socket
Socket
Sign inDemoInstall

pull-through

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pull-through

through ported to pull-stream style


Version published
Weekly downloads
1.6K
increased by2.66%
Maintainers
1
Weekly downloads
 
Created
Source

pull-through

through ported to pull-stream style.

Example

Same Good Old Api, Brand New Underlying Mechanism.

var through = require('pull-through')

var ts = through(function (data) {
  this.queue(data)
}, function (end) {
  this.queue(null)
})

Incompatibility

DON'T

use var self = this, don't keep a reference.

var WRONG = through(function (data) { WRONG.queue(data) })

DO

through(function (data) { this.queue(data) })

Maybe this will change. this is a little more tricky with pull-streams, though.

License

MIT

FAQs

Package last updated on 30 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc